package com.mine.distinctionteam.http;




import com.mine.distinctionteam.bean.businessman.BusinessmanBean;
import com.mine.distinctionteam.bean.goods.GoodsBean;
import com.mine.distinctionteam.bean.home.HomeBean;
import com.mine.distinctionteam.bean.myclass.ClassBean;
import com.mine.distinctionteam.bean.unused.UnUsedBean;
import com.mine.distinctionteam.config.HomeConfig;
import com.mine.distinctionteam.config.UnUsedUrlConfig;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by hqd on 2016/9/5.
 */
public interface ILiangPinHui {
    @GET(UnUsedUrlConfig.Path.URL_UNUSED)
    Call<UnUsedBean> getUnUsed(@QueryMap() Map<String, String> map);
    @GET(UnUsedUrlConfig.Path.URL_GOODS+"{id}")
    Call<GoodsBean> getGoods(@Path("id") String id);
    @GET(UnUsedUrlConfig.Path.URL_USER)
    Call<BusinessmanBean> getBusinessman(@QueryMap() Map<String, String> map);
    @GET(UnUsedUrlConfig.Path.URL_CLASS)
    Call<ClassBean> getClass(@QueryMap() Map<String, String> map);
    //首页
    @GET(HomeConfig.Path.URL_HOME)
    Call<HomeBean> getHome();
}
